package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:33
 * @Description: TODO
 */
@TableName("t_face_image_data")
public class FaceImageData {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String personId;

    private String personType;

    private String personName;

    @JsonIgnore
    private String imageBase64;

    private String imagePath;

    @TableField("create_timestamp")
    private Long timestamp;

    private String action;

    public void setId(Long id) {
        this.id = id;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public void setPersonType(String personType) {
        this.personType = personType;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public void setImageBase64(String imageBase64) {
        this.imageBase64 = imageBase64;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.FaceImageData))
            return false;
        com.caipin.domain.table.FaceImageData other = (com.caipin.domain.table.FaceImageData)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$personId = getPersonId(), other$personId = other.getPersonId();
        if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
            return false;
        Object this$personType = getPersonType(), other$personType = other.getPersonType();
        if ((this$personType == null) ? (other$personType != null) : !this$personType.equals(other$personType))
            return false;
        Object this$personName = getPersonName(), other$personName = other.getPersonName();
        if ((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName))
            return false;
        Object this$imageBase64 = getImageBase64(), other$imageBase64 = other.getImageBase64();
        if ((this$imageBase64 == null) ? (other$imageBase64 != null) : !this$imageBase64.equals(other$imageBase64))
            return false;
        Object this$imagePath = getImagePath(), other$imagePath = other.getImagePath();
        if ((this$imagePath == null) ? (other$imagePath != null) : !this$imagePath.equals(other$imagePath))
            return false;
        Object this$timestamp = getTimestamp(), other$timestamp = other.getTimestamp();
        if ((this$timestamp == null) ? (other$timestamp != null) : !this$timestamp.equals(other$timestamp))
            return false;
        Object this$action = getAction(), other$action = other.getAction();
        return !((this$action == null) ? (other$action != null) : !this$action.equals(other$action));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.FaceImageData;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $personId = getPersonId();
        result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
        Object $personType = getPersonType();
        result = result * 59 + (($personType == null) ? 43 : $personType.hashCode());
        Object $personName = getPersonName();
        result = result * 59 + (($personName == null) ? 43 : $personName.hashCode());
        Object $imageBase64 = getImageBase64();
        result = result * 59 + (($imageBase64 == null) ? 43 : $imageBase64.hashCode());
        Object $imagePath = getImagePath();
        result = result * 59 + (($imagePath == null) ? 43 : $imagePath.hashCode());
        Object $timestamp = getTimestamp();
        result = result * 59 + (($timestamp == null) ? 43 : $timestamp.hashCode());
        Object $action = getAction();
        return result * 59 + (($action == null) ? 43 : $action.hashCode());
    }

    public String toString() {
        return "FaceImageData(id=" + getId() + ", personId=" + getPersonId() + ", personType=" + getPersonType() + ", personName=" + getPersonName() + ", imageBase64=" + getImageBase64() + ", imagePath=" + getImagePath() + ", timestamp=" + getTimestamp() + ", action=" + getAction() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public String getPersonId() {
        return this.personId;
    }

    public String getPersonType() {
        return this.personType;
    }

    public String getPersonName() {
        return this.personName;
    }

    public String getImageBase64() {
        return this.imageBase64;
    }

    public String getImagePath() {
        return this.imagePath;
    }

    public Long getTimestamp() {
        return this.timestamp;
    }

    public String getAction() {
        return this.action;
    }
}

